/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bloque3;

/**
 *
 * @author Christian
 */
public class ejercicio1 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
       int base=2;
       int exp=0;
       int n=0;
       
      while (n<11){
          Math.pow(base,exp);
          n+=(int)(Math.pow(base,exp));
          exp++;
      }
        System.out.println("La suma total es "+n);
        
    
      }
       
               
    }
